import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import router from './router/index.ts'

//引入粒子库
import Particles from 'vue3-particles'
// 引入pinia
import {createPinia} from "pinia"
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
const pinia=createPinia();
pinia.use(piniaPluginPersistedstate)

createApp(App)
    .use(ElementPlus, {
        locale: zhCn,
      })
    .use(router)
    .use(pinia)
    .use(Particles)
    .mount('#app')
